package cn.jaye.fabric.application.command.peer;

import cn.jaye.fabric.common.model.BaseCommand;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author Jaye
 * @create 2018-05-23 13:52
 */
@Setter
@Getter
public class CreatePeerCommand extends BaseCommand {
    private String orgId;
    @NotEmpty(message = "orderId不能为空")
    private String orderId;
    @NotEmpty(message = "peerName不能为空")
    private String peerName;
    @NotEmpty(message = "hostAddress不能为空")
    private String hostAddress;
    @NotEmpty(message = "port不能为空")
    private String port;
    @NotEmpty(message = "eventPort不能为空")
    private String eventPort;
    private Boolean tlsFlag;
}
